package com.sasis.model;

import java.util.Collection;

public class BaseSubject extends BaseEntity implements Subject {

	private static final long serialVersionUID = 1L;

	private boolean function;
	
	private Subject parent;
	
	private Collection childs;
	
	public BaseSubject() {
		
	}
	
	public BaseSubject(Long id, boolean function) {
		super.id = id;
		this.function = function;
	}

	public Collection getChilds() {
		return childs;
	}

	public void setChilds(Collection childs) {
		this.childs = childs;
	}

	public boolean isFunction() {
		return function;
	}

	public void setFunction(boolean function) {
		this.function = function;
	}

	public Subject getParent() {
		return parent;
	}

	public void setParent(Subject parent) {
		this.parent = parent;
	}

}
